package com.example.mapper;
import com.example.pojo.WorkSchedule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.vo.per.ClockInParams;
import com.example.vo.per.EmpTurnover;
import io.swagger.annotations.Api;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 排班表 Mapper 接口
 * </p>
 *
 * @author wsl
 * @since 2022-04-28
 */
@Mapper
@Repository
public interface WorkScheduleMapper extends BaseMapper<WorkSchedule> {


    /**
     * 多条件查询
     * @param datasel 日期选择
     * @param statussel 状态选择
     */
    @MapKey("id")
    List<Map<String,Object> > selectByShiftIdAndStatus(@Param("sid") Integer datasel,
                                                       @Param("sta")Integer statussel);


    /**
     *  查询排班日期
     *  查询打卡时间
     * @param workid 登录用户
     * @param monthStatus 月份选择
     */
    List<ClockInParams> sellistcip(@Param("wid") Integer workid,@Param("mon") Integer monthStatus);

}
